package com.itheima.service.impl.oms;

import com.baomidou.mybatisplus.core.conditions.query.LambdaQueryWrapper;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.itheima.mapper.oms.OmsOrderItemMapper;
import com.itheima.pojo.oms.OmsOrderItem;
import com.itheima.service.oms.OmsOrderItemService;
import org.apache.dubbo.config.annotation.DubboService;

import java.util.List;

@DubboService
public class OmsOrderItemServiceImpl extends ServiceImpl<OmsOrderItemMapper, OmsOrderItem> implements OmsOrderItemService {


    //商品信息
    @Override
    public List<OmsOrderItem> GeiByID(int id) {

        LambdaQueryWrapper<OmsOrderItem> queryWrapper = new LambdaQueryWrapper<>();
        queryWrapper.eq(OmsOrderItem::getOrderId,id);
        List<OmsOrderItem> list = this.list(queryWrapper);
        return list;
    }
}
